﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using model;
using Dal;
using System.Data;

namespace Bll
{
    public class StudentBll
    {
        StudentDal dal = new StudentDal();
        public void ZhuCe(Student student)
        {
            dal.ZhuCe(student);
        }
        public int Login(string sno, string spwd)
        {
            return dal.Login(sno, spwd);
        }
        public string Login(string sno)
        {
            return dal.Login(sno); 
        }
        public Student GetSingle(string sno)
        {
            return dal.GetSingle(sno);
        }
        public void Update(Student student)
        {
            dal.Update(student);
        }
        public void PwdUpdate(string spwd,string sno)
        {
            dal.PwdUpdate(spwd,sno);
        }
        public void UpdateGo(Student st)
        {
            dal.UpdateGo(st);
        }
        public List<Student> GetList(string name)
        {
            return dal.GetList(name);
        }
        public void Delete(string sno)
        {
            dal.Delete(sno);
        }
        public DataTable getStudents(string keyword)
        {
            return dal.getStudents(keyword);
        }
        public DataTable getStudents(string keyword,int i)
        {
            return dal.getStudents(keyword,i);
        }
        public int enable(string sno)
        {
            return dal.enable(sno);
        }
        public int getisok(string sno)
        {
            return dal.getisok(sno);
        }
        public DataTable GetDataTable(string sql)
        {
            return dal.GetDataTable(sql);
        }
        public int ExcecuteSql(string sql)
        {
            return dal.ExcecuteSql(sql);
        }
    }
}
